import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Showbooks from "../components/Show";
import Addbooks from "../components/Addbooks";
import Updbooks from "../components/Updbooks";

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/show',
      name: 'Showbooks',
      component: Showbooks
    },
    {
      path: '/addbooks',
      name: 'Addbooks',
      component: Addbooks
    },
    {
      path: '/upd',
      name: 'UPD',
      component: Updbooks
    }
  ]
})
